'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 锻造
 * @author sundbcn@gmail.com (sun debing)
 */

var dataApi = require('../libs/dataApi');

/**
 * 获取锻造配置
 */
exports.getForgeConf = function (forge_draw_id) {
    return _getForgeConf(forge_draw_id);
};

/**
 * 获取锻造类型
 */
exports.getForgeType = function (forge_draw_id) {
    var forge_conf = _getForgeConf(forge_draw_id);
    return forge_conf.type;
};

/**
 * 获取锻造配置
 */
var _getForgeConf = function (forge_draw_id) {
    var forge_conf = dataApi.forge.findById(forge_draw_id);
    return forge_conf;
};
